package com.lzx.service.nybk.impl;

import com.lzx.mapper.Nybk.NybkMapper;
import com.lzx.model.nybk.Nybk;
import com.lzx.service.nybk.NybkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
import java.util.List;

@Service("nybkService")
public class NybkServiceImpl implements NybkService {
    @Autowired
    NybkMapper nybkMapper;

    @Override
    public List<Nybk> findNybkAll() throws SQLException {
        return nybkMapper.findNybkAll();
    }

    @Override
    public List<Nybk> findNybkByType(Nybk nybk) throws SQLException {
        return nybkMapper.findNybkByType(nybk);
    }

    @Override
    public List<Nybk> findNybkByTypeNopage(Nybk nybk) throws SQLException {
        return nybkMapper.findNybkByTypeNopage(nybk);
    }

    @Override
    public Nybk findNybkById(String id) throws SQLException {
        return nybkMapper.findNybkById(id);
    }

    @Override
    public List findNybktype(String type) throws SQLException {
        return nybkMapper.findNybktype(type);
    }

}
